<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>OpenArithmetic</title>
  <meta charset="UTF-8" />
  <link rel="stylesheet" href="../css/main.css"> 
  
  <!-- Load the log4javascript library and initialize the logger -->
  <script src="../lib/log4javascript/log4javascript.js"></script>
  <script>
  //<![CDATA[
  // var log = log4javascript.getDefaultLogger();
  // Create the logger
  var log = log4javascript.getLogger();
  // Create a PopUpAppender with default options
  var appender = new log4javascript.BrowserConsoleAppender();
  // Add the appender to the logger
  log.addAppender(appender);
  
  // example for calling the logger
  // log.debug("Culprit: ", e.culprit)
  //]]>
  </script>
  
  <script src="../lib/util.js"></script>
  <script src="../model/application.js"></script>
  <script src="../model/ArithmeticProblemType.js"></script>
  <script src="../model/ArithmeticProblem.js"></script>
  <script src="../model/arithmeticProblemTypes.js"></script>
  <script src="../model/RenderingType.js"></script>
  <script src="../model/renderingTypes.js"></script>
  <script src="../model/BasicProblemStatistic.js"></script>
  <script src="../model/ArithmeticExercise.js"></script>

</head>
<body>
 <header>
   <div id="logo">OpenArithmetic</div>
   <h1 id="title">Testing</h1>
 </header>
 
 <script type="text/javascript">
try {
  oa.basicAdditionStatistics = BasicProblemStatistic.getInitialBasicProblemStatisics();
  for (var i=0; i < oa.basicAdditionStatistics.length; i++) {
    oa.basicAdditionStatistics[i].correctCounter = 100-i;
  }
  var ex1 = new ArithmeticExercise( oa.apt.additionOf3, 5, oa.rt.individualEquationWithResultInput);
  ex1.generateProblemPool();
  log.info( ex1.generateBasicProblem());
}
catch(e) {
	log.error("", e);
	log.info("Culprit: ", e.culprit);
}
//log.info("", ap1);
</script>
 
 
</body>
</html>


